package masterlink.futures.form;
/**
 * TODO Write the description
 *
 * @author : fatsung wang
 * Create date : 2012/6/19
 * @version 1.0.0	
 */
public class VirtualDeleteForm {
	private String broker;
	private String acno;
	private String trid;
	private int quantity;
	private String buySell;
	private double price;
	private int date1;
	private int tag1;
	private int tag2;
	public String getBroker() {
		return broker;
	}
	public void setBroker(String broker) {
		this.broker = broker;
	}
	public String getAcno() {
		return acno;
	}
	public void setAcno(String acno) {
		this.acno = acno;
	}
	public String getTrid() {
		return trid;
	}
	public void setTrid(String trid) {
		this.trid = trid;
	}
	public int getQuantity() {
		return quantity;
	}
	public void setQuantity(int quantity) {
		this.quantity = quantity;
	}
	public String getBuySell() {
		return buySell;
	}
	public void setBuySell(String buySell) {
		this.buySell = buySell;
	}
	public double getPrice() {
		return price;
	}
	public void setPrice(double price) {
		this.price = price;
	}
	public int getDate1() {
		return date1;
	}
	public void setDate1(int date1) {
		this.date1 = date1;
	}
	public int getTag1() {
		return tag1;
	}
	public void setTag1(int tag1) {
		this.tag1 = tag1;
	}
	public int getTag2() {
		return tag2;
	}
	public void setTag2(int tag2) {
		this.tag2 = tag2;
	}
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("VirtualDeleteForm [broker=");
		builder.append(broker);
		builder.append(", acno=");
		builder.append(acno);
		builder.append(", trid=");
		builder.append(trid);
		builder.append(", quantity=");
		builder.append(quantity);
		builder.append(", buySell=");
		builder.append(buySell);
		builder.append(", price=");
		builder.append(price);
		builder.append(", date1=");
		builder.append(date1);
		builder.append(", tag1=");
		builder.append(tag1);
		builder.append(", tag2=");
		builder.append(tag2);
		builder.append("]");
		return builder.toString();
	}
	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((acno == null) ? 0 : acno.hashCode());
		result = prime * result + ((broker == null) ? 0 : broker.hashCode());
		result = prime * result + ((buySell == null) ? 0 : buySell.hashCode());
		result = prime * result + date1;
		long temp;
		temp = Double.doubleToLongBits(price);
		result = prime * result + (int) (temp ^ (temp >>> 32));
		result = prime * result + quantity;
		result = prime * result + tag1;
		result = prime * result + tag2;
		result = prime * result + ((trid == null) ? 0 : trid.hashCode());
		return result;
	}
	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		VirtualDeleteForm other = (VirtualDeleteForm) obj;
		if (acno == null) {
			if (other.acno != null)
				return false;
		} else if (!acno.equals(other.acno))
			return false;
		if (broker == null) {
			if (other.broker != null)
				return false;
		} else if (!broker.equals(other.broker))
			return false;
		if (buySell == null) {
			if (other.buySell != null)
				return false;
		} else if (!buySell.equals(other.buySell))
			return false;
		if (date1 != other.date1)
			return false;
		if (Double.doubleToLongBits(price) != Double
				.doubleToLongBits(other.price))
			return false;
		if (quantity != other.quantity)
			return false;
		if (tag1 != other.tag1)
			return false;
		if (tag2 != other.tag2)
			return false;
		if (trid == null) {
			if (other.trid != null)
				return false;
		} else if (!trid.equals(other.trid))
			return false;
		return true;
	}


}
